package com.link.base.base.securitypage.dao.mybatis.mapper;

import com.link.base.base.securitypage.model.SecurityPage;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * @author: unknown
 * @date: unknown
 */
public interface SecurityPageMapper extends BasicMapper<SecurityPage> {

    /**
     * 获取所有的"安全性菜单Id:菜单关联页面URL:页面可用URL"对应关系
     *
     * @param record
     * @return List SecurityPage
     */
    public String[] getAllMenuPageURL(SecurityPage record);

    /**
     * 根据安全性菜单id查询关联页面及URL
     *
     * @param record
     * @return List SecurityPage
     */
    public List<SecurityPage> getPageAndUrlByMenuId(SecurityPage record);
}
